<?php
require 'menu_atas.php';
?>
<style>
input.error, textarea.error, select.error {
	background-color:#FFFFCC !important;
	border:1px solid #CC0000 !important;
}
label.error {
	color:#CC0000 !important;
	font-family:Arial, Helvetica, sans-serif !important;
	font-size:11px !important;
	padding-left:5px !important;
}
</style>
<?php
$username=$_SESSION['username'];
$sql="select * from tb_pendaftar where username='".$username."'";
//echo $sql;
$qry=mysql_query($sql);
$hasil=mysql_fetch_array($qry);
?>
<html>
<head>	</head>
<body>
	 <table id="belang">
		<tr>
			<th>No.</th>
			<th>Proli</th>
			<th>Nama</th>
			<th>Asal Sekolah</th>
			<th>Nilai Matematika</th>
			<th>Nilai Indonesia</th>
			<th>Nilai Inggris</th>
			<th>Nilai Ipa</th>
			<th>Jumlah</th>
			<th>Rata-rata</th>
			<th>Cetak Kartu</th>
			<th>Status</th>
			
		</tr>
	<?php	
	$p       = new Paging;
	$batas   = 5;
	$posisi  = $p->cariPosisi($batas);
	
	$q2=mysql_query("SELECT * FROM tb_pendaftar ORDER BY no_pendaftaran ASC LIMIT $posisi,$batas");
	$no=$posisi+1;
	while($r2=mysql_fetch_array($q2)){
	
	$agama=mysql_fetch_array(mysql_query("SELECT * FROM tb_agama WHERE id_agama= '$r2[id_agama]'"));
	if($r2[jk]=="1"){
	$jk ="Laki-Laki";
	}else{
	$jk="Perempuan";}
	?>
	    
</table>

 	<div style="clear:both" />
 	<div id="footer" align="center"><?php echo $namasitus; ?> <br><br>&copy; 2014. Copyrigt by: <a href="author.php">Lulu Infajaroh</a>
	<a href="#header" title="Kembali ke Atas"><img src="images/go-top.png" style="float:right; width:15px; height:15px;" /></a></div>
 </div>
	</body>
    </html>